﻿/*
 * ©2009-2010 XELF
 * http://xelf.info
 */

#if !WINDOWS_PHONE

namespace XELF.Framework {

	public partial struct Matrix {
		/// <summary>
		/// 転置
		/// </summary>
		public static void Transpose(ref Matrix a, out Matrix result) {
			result = new Matrix(
				a.M11, a.M21, a.M31, a.M41,
				a.M12, a.M22, a.M32, a.M42,
				a.M13, a.M23, a.M33, a.M43,
				a.M14, a.M24, a.M34, a.M44);
		}
		/// <summary>
		/// 転置
		/// </summary>
		public static Matrix Transpose(Matrix a) {
			Matrix result;
			Transpose(ref a, out result);
			return result;
		}
	}

}

#endif
